import {get, post} from "../service";

const api = {
    login: params => post(`/api/user/login`, params),
    register: params => post(`/api/user/register`, params),
    // 获取图形验证码
    getCaptcha: params => get(`/api/user/captcha`, params),
    // 发送手机验证码
    sendSms: params => post(`/api/user/send-sms`, params),
    getBanners: params => get(`/api/home-banners/list`, params),
    payTest: params => post(`/api/wechat/pay/test/native/create`, params),
    getContactInfo: params => get(`/api/contact-info`, params),
    /**
     * 插件
     */
    getPlugins: params => get(`/api/plugins`, params),
    getPluginsSearch: params => get(`/api/plugins/search`, params),
    getPluginsCategories: params => get(`/api/plugins/categories`, params),
    /**
     * 问答
     * @param type faq-常见问题解答，news-新闻咨询，announcement-公告 
     * @returns 
     */
    getArticles: params => get(`/api/content-articles`, params),
    // 基本联系信息
    getContactInfo: params => get(`/api/contact-info`, params),
}
 
export default api
 